Skip to content

fix: replace Imgur-hosted images with self-hosted assets#8402

Open
travisbreaks wants to merge 1 commit intoreactjs:mainfrom
travisbreaks:fix/replace-imgur-images-with-local-assets
Open

fix: replace Imgur-hosted images with self-hosted assets#8402
travisbreaks wants to merge 1 commit intoreactjs:mainfrom
travisbreaks:fix/replace-imgur-images-with-local-assets

Conversation

@travisbreaks
Copy link
Copy Markdown

Summary

  • Imgur withdrew from the UK due to the Online Safety Act, breaking all documentation images for UK-based users
  • Replaced all 195 Imgur references across 18 files with locally hosted copies at public/images/docs/scientists/
  • Added 50 image files covering all direct references and dynamic size variants (s/m/b/l suffixes used by the getImageUrl helper)
  • Uses absolute URLs (https://react.dev/images/docs/scientists/...) because all images are inside Sandpack code examples that run in a sandboxed iframe on a different domain

Why this approach vs. existing PRs

Test plan

  • yarn lint passes
  • yarn tsc passes
  • yarn lint-heading-ids passes
  • Pre-commit hooks pass
  • Verify images render in Sandpack previews on the deployed preview
  • Confirm no Imgur references remain: grep -r 'imgur.com' src/content/
  • Test the getImageUrl size-switching challenge in Passing Props tutorial

Fixes #8110

Co-Authored-By: Tadao tadao@travisfixes.com

🤖 Generated with Claude Code

Imgur withdrew from the UK due to the Online Safety Act, breaking all
images in the docs for UK-based users. This replaces all 195 Imgur
image references across 18 documentation files with locally hosted
copies served from react.dev/images/docs/scientists/.

50 image files are added to cover all direct references and dynamic
size variants (s/m/b/l suffixes used by the getImageUrl helper).

Fixes reactjs#8110

Co-Authored-By: Tadao <tadao@travisfixes.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Images hosted on imgur now no longer work in the UK

1 participant